package doughnut.xc.mapper;

import doughnut.xc.pojo.User2;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


public interface User2Mapper extends Mapper<User2> {

    @Select("select id, user_name as userName, phone, hire_date as hireDate, address from tb_user2 limit #{pageNum}, #{pageSize}")
    public List<User2> findPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

}


